import Cookies from 'js-cookie'

const TokenKey = 'hrsaas-ihrm-token'
const timekey = 'hrsaas-ihrm-key'

export function getToken() {
  return Cookies.get(TokenKey)
}

export function setToken(token) {
  return Cookies.set(TokenKey, token)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}
// 设置当前token的生成时间
export function setTimeStamp(stamp) {
  return Cookies.set(timekey, stamp)
}
// 获取token生成时间的方法
export function getTimeStamp() {
  return Cookies.get(timekey)
}
